package model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the mylike database table.
 * 
 */
@Entity
public class Mylike implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int likeid;

	//bi-directional many-to-one association to Myuser
    @ManyToOne
	@JoinColumn(name="user")
	private Myuser myuser;

	//bi-directional many-to-one association to Target
    @ManyToOne
	@JoinColumn(name="target")
	private Target targetBean;

    public Mylike() {
    }

	public int getLikeid() {
		return this.likeid;
	}

	public void setLikeid(int likeid) {
		this.likeid = likeid;
	}

	public Myuser getMyuser() {
		return this.myuser;
	}

	public void setMyuser(Myuser myuser) {
		this.myuser = myuser;
	}
	
	public Target getTargetBean() {
		return this.targetBean;
	}

	public void setTargetBean(Target targetBean) {
		this.targetBean = targetBean;
	}
	
}